package com.ctrip.study.refactor.simple.price;

import com.ctrip.study.refactor.simple.Movie;

public abstract class Price {

	public abstract int getPriceCode(); // 取得价格代号
	
	public abstract double getCharge(int daysRented);
	
	public int getFrequentRenterPoints(int daysRented) {
		if ((getPriceCode() == Movie.NEW_RELEASE) && daysRented > 1)
			return 2;
		else
			return 1;
	}

}
